package com.tianji.learning.mapper;

import com.tianji.learning.domain.po.PointsBoard;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tianji.learning.domain.vo.PointsBoardItemVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 学霸天梯榜 Mapper 接口
 * </p>
 *
 * @author xjs
 */
public interface PointsBoardMapper extends BaseMapper<PointsBoard> {

    void createTable(@Param("tableName") String tableName);

    void batchInsert(@Param("tableName") String tableName, @Param("voList") List<PointsBoardItemVO> voList);

    PointsBoardItemVO queryByUserId(@Param("tableName") String tableName, @Param("userId")Long userId);

    List<PointsBoardItemVO> selectPageData(@Param("tableName") String tableName,
                                           @Param("offset")int start,
                                           @Param("size")Integer pageSize);
}
